home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / batvew11.zip / ATXTFILE.BAT < prev    next >
DOS Batch File  |  1993-10-07  |  4KB  |  117 lines

  1. @ECHO OFF
  2. echo off
  3. AMSG +27 15 113 206 "HOW TO USE ASCII TEXT FILES WITH ABATMENU AND AMSG"
  4. ACLS +23
  5. AECHO @205:75
  6. AECHO "Typing long option lists to create large menus and"
  7. AECHO "message prompts can quickly become impractical and cumbersome."
  8. AECHO @196:32
  9. AECHO "Since...."
  10. AECHO "DOS only allows 127 characters on the command line and you may"
  11. AECHO "want to create multiple or nested menus and message prompts,"
  12. AECHO "AMSG and ABATMENU allow you to store option lists in text files."
  13. AECHO @196:32
  14. AECHO "You specify the text file that the utility program will reference"
  15. AECHO "by passing its COMPLETE name including the extension as the"
  16. AECHO "FIRST and ONLY option on the command line."
  17. AECHO @196:32
  18. AECHO "Like this........ABATMENU MyMenu.txt"
  19. AECHO or
  20. AECHO "AMSG MyMessage.txt"
  21. AECHO @196:32
  22. AECHO "If the text file is not in the working directory"
  23. AECHO "you will need to provide a complete path with the file name."
  24. AECHO @196:32
  25. AECHO "To pass a path name.....ABATMENU C:\textfiles\MyMenu.txt"
  26. AECHO @196:32
  27. AMSCROLL /pauz +31 27 A
  28. ACLS /hz +11
  29. AECHO /l @205:75
  30. AECHO /l "To make text files for use with Abatmenu or Amsg create a"
  31. AECHO /l "STRAIGHT ASCII text file with each option on a seperate line."
  32. AECHO /l @196:32
  33. AECHO /l "This way....."
  34. AECHO /l " +49"
  35. AECHO /l " 15"
  36. AECHO /l " 116"
  37. AECHO /l " 123"
  38. AECHO /l " 224"
  39. AECHO /l " * Text Menu *"
  40. AECHO /l " 1. Choose One"
  41. AECHO /l " 2. Choose Two"
  42. AECHO /l " 3. Choose Three"
  43. AECHO /l " 4. Choose Four"
  44. AECHO /l " 5. Exit"
  45. AECHO /l " *******************"
  46. AECHO /l "Abatmenu and Amsg use the the new line to separate each option"
  47. AECHO /l "so you don't need to place quotation marks around arguments"
  48. AECHO /l "containing more than one word in text files."
  49. AECHO /l @196:32
  50. AMSCROLL /pauz +27 27 A
  51. ACLS /vt +95
  52. AECHO @205:75
  53. AECHO "You can store one, some, or all of your option lists in a"
  54. AECHO "text file by using Labels."
  55. AECHO @196:32
  56. AECHO "A Label is a word or set of characters preceeded by the @ character."
  57. AECHO "Examples: @Stereotype @Democrat @Republican @Perotian @etc.."
  58. AECHO "You can then reference your options using the label."
  59. AECHO @196:32
  60. AECHO "ABATMENU @34MyMenu.txt @Computer_Geeks34"
  61. AECHO @196:32
  62. AECHO "You need to enclose the text file and label names with quotes"
  63. AECHO "so the program will associate the label with the file name."
  64. AECHO "Place the labels in your text file at the beginning of an"
  65. AECHO "option set to reference it. You don't need a label for"
  66. AECHO "the FIRST option set in a file, just use the file name."
  67. AECHO @196:32
  68. AECHO "Insert labels like this......"
  69. AECHO "(first option set)"
  70. AECHO @alabel
  71. AECHO "(second option set)"
  72. AECHO @anotherlabel
  73. AECHO "(last option set )"
  74. AECHO @196:32
  75. AMSCROLL /pauz +80 27 A
  76. ACLS /in +79
  77. AECHO @205:75
  78. AECHO "You can use the same text file to store options for either program."
  79. AECHO "Of course, you have to keep up with the label names"
  80. AECHO "or you'll get some unexpected results."
  81. AECHO @196:32
  82. AECHO "Here's a few more examples."
  83. AECHO @196:32
  84. AECHO "ABATMENU options.txt"
  85. AECHO "AMSG @34options.txt @firstlabel@34"
  86. AECHO "ABATMENU @34options.txt @secondlabel@34"
  87. AECHO "AMSG @34options.txt @lastlabel@34"
  88. AECHO @196:32
  89. AECHO "That's all there is to it."
  90. AECHO "Abatmenu isn't case sensitive about file and label names"
  91. AECHO "so you don't have to remember if you used capital letters."
  92. AECHO @196:32
  93. AECHO "By using text files to store your options you can easily"
  94. AECHO "modify or experiment with different menus and message prompts."
  95. AECHO @196:32
  96. AECHO "By the way, if you're wondering how to make the @ character"
  97. AECHO "Press the SHIFT and number 2 key at the same time."
  98. AECHO @196:32
  99. AMSCROLL /pauz +116 27 A
  100. ACLS +48 /blko
  101. AECHO @205:75
  102. AECHO "TEXT FILES WITH AECHO"
  103. AECHO @196:32
  104. AECHO "As was demonstrated in the Alearnme.bat tutorial, you may use"
  105. AECHO "Text Files with Aecho."
  106. AECHO "The format for using text files is Aecho /t @34(Path)textfile@34"
  107. AECHO "There are no labels when using text files with Aecho."
  108. AECHO @196:32
  109. AECHO "You can use overriding attributes and positioning options"
  110. AECHO "in front of the text file option and name to provide"
  111. AECHO "defaults in the text file. Options may be included"
  112. AECHO "on each line of the text file also."
  113. AECHO @196:32
  114. AMSCROLL /pauz +63 27 A
  115. AMSG +93 15 117 206 "AEXMPLES.BAT contains more menus and messages"
  116. ACLS /in +7
  117.